﻿using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using Microsoft.AspNetCore.Http;
using System;
using System.Text.RegularExpressions;
using Logistics.Commn.RabbitMQ;
using HS.RealEstate.RabbitMQ;
using Logistics.Commn;
using Logistics.Data;
using Logistics.Contract;
using Logistics.Model;

namespace Logistics.Web.Controllers
{
    public class RbacController : Controller
    {
        private readonly IPowerManagerRepository _powerManagerRepository;


        public RbacController(IPowerManagerRepository powerManagerRepository)
        {
            _powerManagerRepository = powerManagerRepository;
        }
        /// <summary>
        /// rbac页面加载
        /// </summary>
        /// <returns></returns>
        public IActionResult Default()
        {
            return View();
        }
        public IActionResult Homes()
        {
            return View();
        }
        /// <summary>
        /// 获取菜单
        /// </summary>
        /// <returns></returns>
        public List<PowerManager> GetPowerManagers()
        {
            var students = _powerManagerRepository.GetListAsync();
            return students;
        }
    }
}
